namespace Digitalmes.Application.Mes.Equipments.InspectManuals;

/// <summary>
/// 手动点检数据输入。
/// </summary>
public sealed class ManualInspectInput
{
    /// <summary>
    /// 点检计划 Id
    /// </summary>
    public long PlanId { get; set; }

    /// <summary>
    /// 样件编号
    /// </summary>
    public string? PartNo { get; set; }

    /// <summary>
    /// 点检数据项
    /// </summary>
    public List<ManualInspectDataInput>? Data { get; set; }
}

/// <summary>
/// 手动点检数据项输入。
/// </summary>
public sealed class ManualInspectDataInput
{
    /// <summary>
    /// 点检项 Id
    /// </summary>
    public long InspectionItemId { get; set; }

    /// <summary>
    /// 点检值
    /// </summary>
    public double? Value { get; set; }

    /// <summary>
    /// 点检结果
    /// </summary>
    public InspectResultEnum Result { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}
